package com.ibeeking.gmc.global.api.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName TenantLegalInfoParam
 * @Description
 * @Author ibeeking
 * @Date 2020-12-24 16:34
 **/
@Data
public class TenantLegalInfoParam implements Serializable {
private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@NotNull(message = "id不能为空", groups = {BaseValidationGroup.Update.class})
	private Long id;

	/**
	 * 操作人(1法人 2代办人)
	 */
	private Integer operator;

	/**
	 * 租户id
	 */
	private Integer tenantId;

	/**
	 * 姓名
	 */
	@NotBlank(message = "姓名不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String name;

	/**
	 * 性别
	 */
	@NotNull(message = "性别不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private Integer sex;

	/**
	 * 身份证
	 */
	@NotBlank(message = "身份证不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String idCardNo;

	/**
	 * 出生年月
	 */
	@NotBlank(message = "出生年月不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String birthday;

	/**
	 * 联系电话
	 */
	@NotBlank(message = "联系电话不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String phone;

	/**
	 * 邮政编码
	 */
	@NotBlank(message = "邮政编码不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String postCode;

	/**
	 * 联系地址
	 */
	@NotBlank(message = "联系地址不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String address;

	/**
	 * 身份证_正面
	 */
	@NotBlank(message = "身份证正面不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String idCardUp;

	/**
	 * 身份证_反面
	 */
	@NotBlank(message = "身份证反面不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String idCardDown;

	/**
	 * '手持证件照片'
	 */
	@NotBlank(message = "手持证件照片不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private String handHoldIdCard;


	/**
	 * 创建人
	 */
	private Long createBy;


	/**
	 * 更新人
	 */
	private Long modifyBy;


	/**
	 * '证件类型'
	 */
	@NotNull(message = "证件类型不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private Integer idCardType;

	/**
	 * '证件有效期类型（1：期间；2：长期有效）'
	 */
	@NotNull(message = "证件有效期类型不能为空", groups = {BaseValidationGroup.Update.class, BaseValidationGroup.Insert.class})
	private Integer idCardTermType;

	/**
	 * '证件开始日期'
	 */
	private String idCardTermStart;

	/**
	 * '证件结束日期'
	 */
	private String idCardTermEnd;


}
